package com.tofix.kidmall.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;

import javax.persistence.*;
import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

@Entity
@Table(name = "t_cartgoods", uniqueConstraints = {@UniqueConstraint(columnNames = "cartId")})
public class CartGoods implements Serializable {
    @Id
    private String cartId;
    private String goodsId;
    //判断是否被选上

    private Boolean goodsChecked;

//    @JsonIgnore
//    @ManyToMany(fetch = FetchType.EAGER)
//
//    private Set<Goods> goods = new HashSet<>();

}
